-- GENERATED SPELL FOR [Har'koa] --


function spell0_29050(pUnit, Event) --@Har\'koa\'s Challenge,n/a--
pUnit:FullCastSpellOnTarget(53029,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29050', 676, 1)
end

function spell1_29050(pUnit, Event) --@Har\'koa\'s Compulsion,n/a--
pUnit:FullCastSpellOnTarget(53004,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29050', 616, 1)
end

function spell2_29050(pUnit, Event) --@Quenching Mist,Heal--
pUnit:FullCastSpellOnTarget(53350,pUnit)
pUnit:RegisterEvent('Sorts_29050', 8000, 1)
end

function spell3_29050(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(53499,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29050', 9000, 1)
end

function spell4_29050(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(53498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29050', 567, 1)
end

function Sorts_29050(pUnit, Event)
local choix_sorts_29050 = math.random(0, 4)
if choix_sorts_29050 == 0 then
pUnit:RegisterEvent('spell0_29050', 1, 1)
end
if choix_sorts_29050 == 1 then
pUnit:RegisterEvent('spell1_29050', 1, 1)
end
if choix_sorts_29050 == 2 then
pUnit:RegisterEvent('spell2_29050', 1, 1)
end
if choix_sorts_29050 == 3 then
pUnit:RegisterEvent('spell3_29050', 1, 1)
end
if choix_sorts_29050 == 4 then
pUnit:RegisterEvent('spell4_29050', 1, 1)
end
end

function mob29050_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29050', math.random(1500, 3000), 1)
end

function mob29050_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29050_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29050_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29050, 1, 'mob29050_Action')
RegisterUnitEvent(29050, 2, 'mob29050_Leave')
RegisterUnitEvent(29050, 3, 'mob29050_Kill')
RegisterUnitEvent(29050, 4, 'mob29050_Die')
